/**  
* @Title: StockService.java  
* @Description: TODO(用一句话描述该文件做什么)  
* @author 张鑫
* @phone 17561783855  
* @date 2019年4月17日  
*/
package com.fortune.rainshine.service.service;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fortune.rainshine.config.FeignConfig;
import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinecommon.base.ParmsModel;
import com.fortune.rainshinecommon.model.service.StockModel;
import com.fortune.rainshinecommon.model.service.StockRecordsModel;

/**  
* @ClassName: StockService  
* @Description: TODO(这里用一句话描述这个类的作用)  
* @author 张鑫
* @phone 17561783855
* @date 2019年4月17日  
*    
*/
@FeignClient(value = "rain-shine-service",configuration = FeignConfig.class)
@RestController
public interface StockService {
	@PostMapping(value = "/stock/getStocks")
	MsgModel getStocksByShopId(String shopId);

	@PostMapping(value = "/stock/warning")
	boolean warning(StockModel model);

	@PostMapping(value = "/stock/purchase")
	MsgModel purchase(StockModel model);

	@PostMapping(value = "/stock/findDetailStocks")
	List<StockRecordsModel> findDetailStocks(String id);

	@PostMapping(value = "/stock/stockRecordDetail")
	MsgModel stockRecordDetail(ParmsModel parm);

	@PostMapping(value = "/stock/getStocksForShopSale")
	MsgModel getStocksForShopSale(String shopId);
	
	@PostMapping(value = "/stock/getStocksForShopUse")
	MsgModel getStocksForShopUse(String shopId);

}
